<?php
	header("Content-type:text/html;charset=utf-8");
	$id = $_GET["id"];
	
	$conn = mysql_connect("localhost","root","root");
	
	mysql_select_db("2012");
	$reslut = mysql_query("select * from base where id = '$id' ",$conn);
	
	$obj=mysql_fetch_assoc($reslut);
		$arr=["Id"=>$obj["Id"],"name"=>$obj["name"],"URL"=>$obj["URL"],"price"=>$obj["price"]];
		echo json_encode($arr);
		
	mysql_close($conn);
	
?>